const monoose = require("mongoose");
monoose.connect("mongodb://localhost/blog", {
  useNewUrlParser: true,
  useUnifiedTopology: true
}).then(res => {
  console.log(`数据库链接成功了`);
}).catch((err) => {
  console.log(`数据库连接失败...`);
});